function getJson() {
    return new Promise((resolve, reject) => {
        setTimeout(function () {
            console.log(2);
            resolve(2)
        }, 2000)
    })
}

function testAsync() {
    return new Promise.resolve().then(()=>{
        return getJson()
    }).then(()=>{
        console.log(3);
    })
}

testAsync()
